<template>
	<div class='container'>
		甘特图
		<div class="batch-add-footer">
			<el-button @click="onAddRowForEl" type="primary">添加行</el-button>
		</div>
		<br />
		<el-button @click="timeType = 'year'">年</el-button>
		<el-button @click="timeType = 'month'">月</el-button>
		<GanttChart ref="elBatchAdd" :time-type="timeType" :year="2024" :month="2" :formData="formData" :height="280"
			@dblclick="onDblclick">
		</GanttChart>
	</div>
</template>

<script setup>
import GanttChart from './GanttChart.vue'
import { ref } from 'vue'

const timeType = ref('year')

const onDblclick = (item, row) => {
	timeType.value = 'month'
}
</script>
<style lang='less' scoped>
.container {}
</style>
